'use strict'

const Router = require('koa-router')
const controllers = require('../controllers')

const router = new Router()
router.prefix('/api')


// 用户 START
router.post('/login', controllers.login.login)
router.post('/register', controllers.login.register)
router.post('/user/repeat', controllers.login.usernameRepeat)
// 用户 END

router.get('/chat', controllers.chatController.getChatMessage)

module.exports = router
